import { View } from '@tarojs/components'
import React from 'react'
import { connect } from 'react-redux'

function UserHeader(props) {
  return (
    <View>
      {props.data.nickname}
    </View>
  )
}

const hoc = connect(({ login }) => ({
  data:login
}), (dispatch) => ({

}))

export default hoc(UserHeader)